import request from '@/store/request'

// 获取所有省
export function getAllProvince () {
  return request({
    url: 'sys/provinces',
    method: 'get',
    dataType: 'json'
  })
}
// 查询市
export function getCityByProvince (provinceCode) {
  return request({
    url: 'sys/'+provinceCode+'/city',
    method: 'get',
    dataType: 'json'
  })
}
// 查询区县
export function getAreaByCityCode (cityCode) {
  return request({
    url: 'sys/'+cityCode+'/area',
    method: 'get',
    dataType: 'json'
  })
}
